package com.heima.result;

import jakarta.servlet.http.HttpServletResponse;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PageResult {
    /** 分页查询总行数 */
    private Long total;

    /** 分页查询结果 */
    private List rows;

    /** Http状态码 */
    private Integer code = HttpServletResponse.SC_OK;

    /** 查询成功返回值 */
    private String msg = "查询成功";

    // todo params 是什么
    private Object params = null;

}
